package com.edu.internship.busi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.edu.internship.busi.dto.PermissionDTO;
import com.edu.internship.busi.entity.Permission;

import java.util.List;


public interface IPermissionService extends IService<Permission> {
    /**
     * 新增
     * @param dto
     * @return
     */
    boolean created(PermissionDTO dto);

    /**
     * 修改
     * @param dto
     * @return
     */
    boolean update(PermissionDTO dto);

    /**
     * 删除
     * @param id
     * @return
     */
    boolean remove(String id);

    /**
     * 改变状态
     * @param id
     * @return
     */
    List<Permission> change(List<String>id);
}
